-- GENERATED SPELL FOR [Hatefury Trickster] --


function spell0_4671(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_4671', 543, 1)
end

function spell1_4671(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4671', 30000, 1)
end

function Sorts_4671(pUnit, Event)
local choix_sorts_4671 = math.random(0, 1)
if choix_sorts_4671 == 0 then
pUnit:RegisterEvent('spell0_4671', 1, 1)
end
if choix_sorts_4671 == 1 then
pUnit:RegisterEvent('spell1_4671', 1, 1)
end
end

function mob4671_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4671', math.random(1500, 3000), 1)
end

function mob4671_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4671_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4671_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4671, 1, 'mob4671_Action')
RegisterUnitEvent(4671, 2, 'mob4671_Leave')
RegisterUnitEvent(4671, 3, 'mob4671_Kill')
RegisterUnitEvent(4671, 4, 'mob4671_Die')
